﻿
using System.Globalization;
using System;

namespace BusinessLogic.Tools
{
    public static class StringHelper
    {
        public static string RemoveAccentuation(string text)
        {
            CultureInfo culture = new CultureInfo("fr");

            return text.ToUpper(culture).ToLower(culture);
        }

        public static string[] SplitWords(string text)
        {
            string[] mots = RemoveAccentuation(text).Split(new char[] { ' ', ',', '.', '_', '-', '\'' }, StringSplitOptions.RemoveEmptyEntries);
            return mots;
        }
    }
}
